Helpful Information
 
 
Category: Scheduled Task
Scheduled Task -> cronjob

I have several PHP scripts that I run as Scheduled Tasks (at least I did until I upgraded my server). Now they refuse to execute as a Scheduled Task unless they are run Manually.

How do I convert these to run as a server cron job? Anything I should add or remove to access the mySQL database from outside of vBulletin?

Here is an example of the scripts...

<?php

error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($vbulletin->db))
{
exit;
}

require_once(DIR . '/includes/functions_calendar.php');

// Read the event database for info on calendar events
$events = $vbulletin->db->query_read("
SELECT calendarid, dateline_from, dateline_to, title, lv_vb_eventforums_threadid, customfields
FROM event
WHERE calendarid = 1
ORDER BY dateline_from");










privacy (GDPR)